package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 党员论坛帖对象 cpc_bbs_post
 * 
 * @author ruoyi
 * @date 2021-12-22
 */
public class CpcBbsPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 帖子id */
    private Long postId;

    /** 创建者用户id */
    @Excel(name = "创建者用户id")
    private Long authorId;

    /** 创建者用户名 */
    @Excel(name = "创建者用户名")
    private String authorName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date postCreateTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date postUpdateTime;

    /** 0为普通1为置顶 */
    @Excel(name = "0为普通1为置顶")
    private Integer topStatus;

    /** 0为正常1为删除 */
    @Excel(name = "0为正常1为删除")
    private Integer deleteFlag;

    /** 帖子标题 */
    @Excel(name = "帖子标题")
    private String title;

    /** 帖子内容 */
    @Excel(name = "帖子内容")
    private String content;

    /** 图片链接 */
    @Excel(name = "图片链接")
    private String picUrls;

    /** 评论数 */
    @Excel(name = "评论数")
    private Integer commentNumber;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Integer viewNumber;

    /** 社区id */
    @Excel(name = "社区id")
    private Integer communityId;

    public void setPostId(Long postId)
    {
        this.postId = postId;
    }

    public Long getPostId()
    {
        return postId;
    }
    public void setAuthorId(Long authorId) 
    {
        this.authorId = authorId;
    }

    public Long getAuthorId() 
    {
        return authorId;
    }
    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getAuthorName() {
        return authorName;
    }
    public void setPostCreateTime(Date postCreateTime)
    {
        this.postCreateTime = postCreateTime;
    }

    public Date getPostCreateTime() 
    {
        return postCreateTime;
    }
    public void setPostUpdateTime(Date postUpdateTime) 
    {
        this.postUpdateTime = postUpdateTime;
    }

    public Date getPostUpdateTime() 
    {
        return postUpdateTime;
    }
    public void setTopStatus(Integer topStatus) 
    {
        this.topStatus = topStatus;
    }

    public Integer getTopStatus() 
    {
        return topStatus;
    }
    public void setDeleteFlag(Integer deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Integer getDeleteFlag() 
    {
        return deleteFlag;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPicUrls(String picUrls) 
    {
        this.picUrls = picUrls;
    }

    public String getPicUrls() 
    {
        return picUrls;
    }
    public void setCommentNumber(Integer commentNumber) 
    {
        this.commentNumber = commentNumber;
    }

    public Integer getCommentNumber() 
    {
        return commentNumber;
    }
    public void setViewNumber(Integer viewNumber) 
    {
        this.viewNumber = viewNumber;
    }

    public Integer getViewNumber() 
    {
        return viewNumber;
    }
    public void setCommunityId(Integer communityId) 
    {
        this.communityId = communityId;
    }

    public Integer getCommunityId() 
    {
        return communityId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postId", getPostId())
            .append("authorId", getAuthorId())
            .append("postCreateTime", getPostCreateTime())
            .append("postUpdateTime", getPostUpdateTime())
            .append("topStatus", getTopStatus())
            .append("deleteFlag", getDeleteFlag())
            .append("title", getTitle())
            .append("content", getContent())
            .append("picUrls", getPicUrls())
            .append("commentNumber", getCommentNumber())
            .append("viewNumber", getViewNumber())
            .append("communityId", getCommunityId())
            .toString();
    }
}
